package com.jiazhong.spring.ioc.work.work03;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class App {

    public static void main(String[] args) {
       // ApplicationContext applicationContext = new ClassPathXmlApplicationContext("work.xml");

        ApplicationContext applicationContext = new FileSystemXmlApplicationContext("work.xml");
        School school = applicationContext.getBean(School.class);
        Teacher teacher = applicationContext.getBean(Teacher.class);
        school.print(school);
    }
}
